package com.bianxingji.api;

import com.bianxingji.model.RestResponse;
import com.bianxingji.po.BxjSysFiles;
import com.bianxingji.po.BxjSysQuarter;
import com.bianxingji.service.BxjSysFilesService;
import com.bianxingji.service.BxjSysQuarterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: 24478
 * @create: 2024-12-05 15:03
 **/
//TODO 先放这里了，后面建立的系统工程再搞过去
@Api(tags = "系统接口")
@RestController
@RequestMapping("/sys")
public class BxjSystemController {

@Autowired
private BxjSysFilesService bxjSysFilesService;

@Autowired
private BxjSysQuarterService bxjSysQuarterService;

    @ApiOperation("系统文件")
    @GetMapping("/getBannerList")
    public RestResponse<List<BxjSysFiles>> getCommendPage(){
        return  RestResponse.success(bxjSysFilesService.getBannerList());
    }

    @ApiOperation("获取quarter")
    @PostMapping("/getQuarterList")
    public RestResponse<List<BxjSysQuarter>> getQuarterList(){
        return  RestResponse.success(bxjSysQuarterService.getQuarterList());
    }

}
